<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>DOM练习--全选反选</title>
</head>
<body>
    <main>
        <header>
            <input type="checkbox" value="all">全选<button></button>
        </header>
        <ul>
            <li><input type="checkbox">01</li>
            <li><input type="checkbox">02</li>
            <li><input type="checkbox">03</li>
            <li><input type="checkbox">04</li>
            <li><input type="checkbox">05</li>
            <li><input type="checkbox">06</li>
            <li><input type="checkbox">07</li>
            <li><input type="checkbox">08</li>
            <li><input type="checkbox">09</li>
            <li><input type="checkbox">10</li>
        </ul>
    </main>
    <script src="lianxi.js"></script>
</body>
</html>